package com.example.account.entity;

import com.baomidou.mybatisplus.annotation.IEnum;

public enum TccStatus implements IEnum<Integer> {

    TRIED(1, "已尝试"), COMMITTED(2, "已提交"), ROLLBACKED(3, "已回滚"), SUSPENDED(4, "已悬挂");

    private final int value;
    private final String text;

    TccStatus(int value, String text) {
        this.value = value;
        this.text = text;
    }

    @Override
    public Integer getValue() {
        return value;
    }
}
